import { createStore, createLogger } from 'vuex'
import user from './models/user'
import cart from './models/cart'
import catagory from './models/catagory'

import createPersistedstate from 'vuex-persistedstate'
export default createStore({
  state: {
  },
  mutations: {
  },
  actions: {
  },
  modules: {
    user, cart, catagory
  },
  plugins: [
    createPersistedstate(
      {
        key: 'rabbit',
        paths: ['user', 'cart']
      }),
    createLogger()]
})
